The Image module provides a class with the same name which is used to represent a PIL image. ... If you want to generate an entire image, it can be more efficient to create a Python list and use putdata to copy it to the image. For more extensive changes,